all: server_test

server_test: server.o connection.o chunk_reader.o req_parser.o server_test.cpp
	g++ -DDEBUG -lboost_thread -lboost_system -lboost_regex connection.o server.o chunk_reader.o req_parser.cpp server_test.cpp -o server_test

req_parser_test: req_parser.o req_parser_test.cpp req_parser.h
	g++ -DDEBUG -lboost_thread -lboost_system -lboost_regex req_parser.o req_parser_test.cpp -o req_parser_test


connection.o: connection.cpp connection.h
	g++ -DDEBUG -g -Wall -c connection.cpp

server.o: server.cpp server.h
	g++ -DDEBUG -g -Wall -c server.cpp

chunk_reader.o: chunk_reader.cpp chunk_reader.h
	g++ -DDEBUG -g -Wall -c chunk_reader.cpp

req_parser.o: req_parser.cpp req_parser.h
	g++ -DDEBUG -g -Wall -c req_parser.cpp

clean:
	rm -f *.o server_test
